import React from 'react';
import { BrowserRouter } from 'react-router-dom'
import RouterView from './router/index'
import { Provider } from 'react-redux'
// import { Provider } from './utils/provider'
import store from './store/index'

// import Demo1 from './usehooks/demo1'
// import Demo2 from './usehooks/demo2'


// const data = { count: 0 }

// const App = () => {
//   return <Provider store={data}>
//     <Demo1 />
//     <Demo2 />
//   </Provider>
// }

const App = () => {
  return <Provider store={store}>
    <BrowserRouter>
      <RouterView></RouterView>
    </BrowserRouter>
  </Provider>
}

export default App;